home *** CD-ROM | disk | FTP | other *** search
- 117
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- XDelete
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baXDelete deletes files with wildcard matching, including sub-directories.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baXDelete( DirName , FileSpec )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string.
- --- RECORDSEPARATOR ---
- DirName is the folder to delete the files from.
- --- RECORDSEPARATOR ---
- FileSpec determines what files are deleted.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if all the matching files were successfully deleted or if DirName doesn't
- --- RECORDSEPARATOR ---
- exist, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baXDelete( "c:\data" , "*.bak" )
- --- RECORDSEPARATOR ---
- set OK = baXDelete( ΓÇ£Mac HD:data" , "TEXT" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baXDelete( "c:\\data , "*.bak" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Any empty directories that are left will also be deleted.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , the FileSpec argument follows normal DOS wildcard rules. A *
- --- RECORDSEPARATOR ---
- means match any character in the file name. So *.* deletes all files in the directory;
- --- RECORDSEPARATOR ---
- *.bmp deletes all files with a .bmp extension; T*.* deletes all files starting with the
- --- RECORDSEPARATOR ---
- letter T.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , the wildcard is the four character type code, eg ΓÇ£TEXTΓÇ¥. Only one
- --- RECORDSEPARATOR ---
- type can be specified. Use an empty string or ΓÇ£*.*ΓÇ¥ to specify all files.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baDeleteFile
- --- RECORDSEPARATOR ---
- baDeleteXFiles